{% extends "base_site.html" %}
{% block content %}
<script type='text/javascript'>
$(document).ready(function() {
	$('li a.entry_title').click(function() {
		$(this).next().next().toggle();
	});
});
</script>
{% if posts %}
{% for post in posts %}
{% ifchanged %}<h4><a href='/post/{{ post.create_date|date:"Y" }}/{{ post.create_date|date:"m" }}/'>{{ post.create_date|date:"M d" }}</a></h4>{% endifchanged %}
<div class='entry'>
	<a name="post{{ post.key }}"></a>
	<h2><a href='{{ post.get_absolute_url }}' title='{{ post.title|title }}'  
			alt='{{ post.title }}'>{{ post.title|title }}</a></h2>
	<p>{{ post.content|safe }}</p>
	<p class="post-footer align-right">
	    <a href="{{ post.get_absolute_url }}" class="readmore">Read more</a>
	    <a href="{{ post.get_absolute_url }}#comments" class="comments">Comments ({{ post.comment_count }})</a>
	    <span class="date">{{ post.create_date|date:"P l, M d, Y" }}</span>
	</p>
</div>
{% endfor %}
{% endif %}
<h3><a href='/feed/' title='我们这些人'>我们这些人</a></h3>
<ul>
	{% for entry in entry_list %}
    <li>
		<a href='javascript:void(0);' title='{{entry.title}}' 
			alt='{{entry.title}}' class='entry_title'>{{entry.title}}</a>
		[<a href='{{entry.feed.get_absolute_url}}' title='{{entry.feed.title}}' 
			alt='{{entry.feed.title}}' class='entry_title'>{{entry.feed.title}}</a>]
		- {{ entry.updated|date:"Y-m-d P" }}
		<div {% if not forloop.first %}class='hide'{% endif %}>
			标题: <a href='{{entry.link}}' 
				title='{{entry.title}}' alt='{{entry.title}}' target='_blank'>{{entry.title}}</a><br />
			{{entry.description|safe|truncatewords_html:10}}
			<a href='{{entry.link}}' 
				title='{{entry.title}}' alt='{{entry.title}}' target='_blank'><strong>想知道更多</strong></a>
		</div>
    </li>
	{% endfor %}
	<li>
		<a href='/feed/' title='更多'>还有吗?</a>
	</li>
</ul>
{% endblock %}